<me:UIWB19 x:Class="WPFExcelReport.TWB19"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"   
                     FTAUTOSUM="True"
                   SKEY1="WBFVERSION" 
                     KEY1="WBFQPKT"   
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWB19.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIWB19.Resources>
    <Grid Visibility="{Binding IsProduced,ElementName=TV,Converter={StaticResource ResourceKey=bv}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions> 
        <DataGrid Grid.Row="0"  
                  Grid.Column="0"  
                AutoGenerateColumns="False" 
                  EnableRowVirtualization="False" 
                  Name="dlgMaster"
                  ItemsSource="{Binding Source={StaticResource vwMaster }}" 
                  HeadersVisibility="Column"  CanUserReorderColumns="False" CanUserResizeRows="False"  
                       RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto" 
                  Height="Auto" EnableColumnVirtualization="False" 
                  HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=WBFFSCHL}" Header="{Binding Source={Localization:Translate Word=疵点类型}}" Width="Auto" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=WBFLGBIS,Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=数量}}" Width="Auto"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</me:UIWB19>
